<?php
/**
 * @category   Ahs
 * @package    Ahs_Amf
 * @subpackage Auth
 * @author     Olivier Parent
 * @copyright  Copyright (c) 2011 Artevelde University College Ghent
 */
class Ahs_Amf_Auth extends Zend_Amf_Auth_Abstract
{
    /**
     * @return Zend_Auth_Result
     */
    public function authenticate()
    {
        $adapter = new Ahs_Auth_Adapter_DbTableAMF();
       // $adapter = new Ahs_Auth_Adapter_DbTable();
        $adapter->setIdentity($this->_username)
                ->setCredential($this->_password);
        $auth = Zend_Auth::getInstance();
        return $auth->authenticate($adapter);
    }

}
